package com.hmall.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.common.dto.PageDTO;
import com.hmall.common.dto.ResultDTO;
import com.hmall.item.pojo.Item;
import org.apache.ibatis.annotations.Param;

public interface ItemService extends IService<Item> {
    Item selectItemById(Long id);

    void addItem(Item item);


    PageDTO<Item> selectItemByPage(Integer page, Integer size);

    void deleteItemById(Long id);

    void findItemStatue(Long id, Integer status);

    void updateItem(Item item);

    void updateStock(Long itemId,Integer num);

    void reliveStock(Long itemId, Integer num);
}
